Skip to content

contract::class_view: nav_is_fully_connected requires reached == screens (codex P2 follow-up to #670)#673

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/medcare-rs-transcode-ruff-3y2olh
Jul 8, 2026
Merged

contract::class_view: nav_is_fully_connected requires reached == screens (codex P2 follow-up to #670)#673
AdaWorldAPI merged 1 commit into
mainfrom
claude/medcare-rs-transcode-ruff-3y2olh

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Follow-up to the merged #670, addressing the unresolved codex P2 review comment on it (nav_is_fully_connected was too permissive).

The gap codex caught

nav_is_fully_connected shipped as screens ⊆ reached — "every declared screen is reachable from root". That subset test passes two cases a "every pipe leads somewhere" validator must reject:

  • Dangling click — an edge whose target is not a declared screen. screens={0,1}, edge 1→99 passed despite the dead link to 99, because every declared screen was still reachable.
  • Unserved rootroot ∉ screens. screens={1}, root=0, 0→1 passed even though the entry screen isn't served.

The fix (one line, strictly stronger)

&screens_reachable_from(root, edges) == screens   // was: screens.intersect(&reached) == screens

Exact equality subsumes all three failure modes at once:

  • orphanscreens ⊆ reached (declared screen unreachable);
  • danglingreached ⊆ screens (reached target undeclared);
  • unserved rootreached always contains root, so root ∉ screens ⟹ inequality.

Cycles remain allowed (this is reachability, not acyclicity — back-navigation is legal).

Tests

+2 regression tests (nav_dangling_click_fails_connectivity, nav_unserved_root_fails_connectivity) reproducing codex's exact examples. The original 3 nav tests pass unchanged — their reached set already equalled the declared universe. class_view 35/35, clippy -D warnings clean.

Board

EPIPHANIES E-KLICKWEG-2 (correction to E-KLICKWEG-1).

🤖 Generated with Claude Code


Generated by Claude Code

…ens (codex P2 #670)

Follow-up to the merged #670. nav_is_fully_connected first shipped as
screens ⊆ reached (every declared screen reachable from root). Codex P2 caught
that the subset test passes two cases a level-editor validator must reject:

- dangling click: an edge whose target is NOT a declared screen — screens={0,1}
  with 1->99 passed despite the dead link to 99, because every *declared* screen
  was still reachable;
- unserved root: root not among the declared screens — screens={1}, root=0,
  0->1 passed even though the entry screen isn't served.

Strengthen to exact equality: screens_reachable_from(root, edges) == screens.
That single check subsumes all three modes — orphan (screens ⊆ reached),
dangling (reached ⊆ screens), and unserved root (reached always contains root,
so root ∉ screens forces inequality). Cycles still allowed (reachability, not
acyclicity). +2 regression tests; the original 3 pass unchanged. class_view
35/35, clippy -D warnings clean. Board: EPIPHANIES E-KLICKWEG-2 correction.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@AdaWorldAPI, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 21 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1d6be68c-1a67-43ed-99bd-fae619201df2

📥 Commits

Reviewing files that changed from the base of the PR and between c2b3bf2 and 552fabd.

📒 Files selected for processing (2)
  • .claude/board/EPIPHANIES.md
  • crates/lance-graph-contract/src/class_view.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_8b199cd8-d733-495f-bbcd-d88392aa8e1e)

@AdaWorldAPI AdaWorldAPI merged commit 5284755 into main Jul 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants